package com.kanshu.ksgb.fastread.doudou.module.personal.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class WithdrawResult implements Parcelable {
    public long app_id;
    public long user_id;     //用户ID
    public long type;              //提现方式；1：微信；2：支付宝
    public long rmb;           //提现rmb；（分）
    public long status;            //提现状态；0：申请；1：进行中；2：成功；3：失败；-1：不通过
    public String add_time;   //申请时间

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.app_id);
        dest.writeLong(this.user_id);
        dest.writeLong(this.type);
        dest.writeLong(this.rmb);
        dest.writeLong(this.status);
        dest.writeString(this.add_time);
    }

    public WithdrawResult() {
    }

    protected WithdrawResult(Parcel in) {
        this.app_id = in.readLong();
        this.user_id = in.readLong();
        this.type = in.readLong();
        this.rmb = in.readLong();
        this.status = in.readLong();
        this.add_time = in.readString();
    }

    public static final Parcelable.Creator<WithdrawResult> CREATOR = new Parcelable.Creator<WithdrawResult>() {
        @Override
        public WithdrawResult createFromParcel(Parcel source) {
            return new WithdrawResult(source);
        }

        @Override
        public WithdrawResult[] newArray(int size) {
            return new WithdrawResult[size];
        }
    };
}
